package com.huawei.hms.videoeditor.fragment;

import android.view.View;

import com.huawei.hms.videoeditor.ui.common.BaseFragment;

import stark.common.basic.event.EventStatConstant;
import stark.common.basic.event.EventStatProxy;

/**
 * @author:XiaoDan
 * @time:2022/10/21
 * @desc:
 */
public abstract class MyBaseFragment extends BaseFragment implements View.OnClickListener {

    @Override
    public void onClick(View view) {
        EventStatProxy.getInstance().statPage(getActivity(), getPageType(), () -> onClickCallback(view));
    }

    /**
     * 页面类型
     */
    protected int getPageType() {
        return EventStatConstant.PAGE_TAB3;
    }

    protected void onClickCallback(View v) {

    }
}
